Skip to content

fix(android): resolve APK installation failure on Android 16 - #183

Merged
winnerspiros merged 1 commit into
masterfrom
android16-apk-fix-net10-v4-18130573469748600972
Apr 12, 2026
Merged

fix(android): resolve APK installation failure on Android 16#183
winnerspiros merged 1 commit into
masterfrom
android16-apk-fix-net10-v4-18130573469748600972

Conversation

@google-labs-jules

Copy link
Copy Markdown

This PR resolves the INSTALL_PARSE_FAILED_NO_CERTIFICATES error (specifically the "Attempt to get length of null array" parsing failure) encountered when installing APKs on Android 16 (API 36).

Changes:

  1. Broadened .NET 10 Native Asset Fix: Updated the FixRuntimePackAssetTypes target in osu.Android.props to include ResolvedFileToPublish. This ensures that native libraries (like BASS or local .so files) are correctly classified as native rather than managed assemblies, which prevents the package manager from crashing during certificate collection.
  2. Mandatory 16KB ELF Alignment: Extended build/PatchElfPageSize.targets to automatically patch native libraries found in osu.Android/libs/. Android 16 enforces 16KB page alignment for all 64-bit ELF LOAD segments; this change ensures our custom native libraries satisfy this requirement.
  3. Default Debug Signing for Workflows: Modified .github/workflows/release.yml to remove the explicit disabling of the Android KeyStore for "unsigned" builds. This allows the .NET SDK to fall back to its default debug certificate, ensuring that the generated APK is signed and installable on modern devices while still being distinguished from production-signed releases.

Verified that the modified logic correctly targets native assets and that the core project build remains stable.


PR created automatically by Jules for task 18130573469748600972 started by @winnerspiros

This commit addresses the "Attempt to get length of null array" error during
APK installation on Android 16 (API 36) by broadening the .NET 10 native
asset misclassification fix in osu.Android.props to include
ResolvedFileToPublish.

Additionally:
- Updates PatchElfPageSize.targets to ensure local libraries in
  osu.Android/libs/ are patched to 16KB page alignment.
- Enables default debug signing for "unsigned" workflow builds to ensure
  generated APKs are installable on modern devices while still being
  distinct from production-signed builds.
@google-labs-jules

Copy link
Copy Markdown
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@winnerspiros
winnerspiros merged commit ed8c224 into master Apr 12, 2026
7 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant